package cn.luyou.admin.service;

import cn.luyou.admin.entity.ExamRule;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ExamRuleService extends IService<ExamRule> {
    
    IPage<ExamRule> getRules(Integer pageNum, Integer pageSize, String keyword);
    
    ExamRule addRule(ExamRule rule);
    
    void updateRule(ExamRule rule);
    
    void deleteRule(Long id);
    
    void updateStatus(Long id, Integer status);
    
    void validateRuleConfig(String ruleConfig);

    ExamRule getRuleById(Long id);
} 
